package com.example.jvmsource.entity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Description:
 *
 * @author zhouyu
 * @date 2022/2/7 15:23
 */
@Configuration
public class MySonConfig {

    @Bean(name = "mySon")
    public MySon mySon() {
        MySon mySon = new MySon();
        System.out.println("myson初始化了!");
        return mySon;
    }
}
